package com.jessechanrui.template.common.template.auth.application.dto;

import com.jessechanrui.template.common.template.auth.infrastructure.feign.authcenter.AuthCenterTenant;
import com.jessechanrui.template.core.dto.DTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author chenrui
 * @version 1.0
 * @description UserDTO
 * @date 2025/4/30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@Schema(description = "用户登录响应")
public class UserDTO extends DTO {

    @Schema(description = "用户名")
    private String name;

    @Schema(description = "是否为管理员, true为管理员")
    private boolean isAdmin;

    @Schema(description = "用户昵称")
    private String userNickname;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "访问令牌")
    private String accessToken;

    @Schema(description = "租户信息")
    private AuthCenterTenant tenant;
}
